<template>
  <div>
    <h2>TsGender</h2>
    <p @change="$emit('input', $event.target.value)">
      <input type="radio" :checked="value == 1" value="1"> 男
      <input type="radio" :checked="value == 2" value="2"> 女
    </p>
  </div>
</template>
<script>
export default {
  props: ['value']
};
</script>